package com.cy.ppj.model.domian.product;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

import com.cy.ppj.model.enums.TagStatus;

/**
 * @description: 标签
 * @author: Ocean
 * @create: 2018-07-17 14:55
 **/
@Data
@Table(name = "t_tag")
@ApiModel("产品标签")
public class Tag {

    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @ApiModelProperty(value = "标签ID", example = "0")
    private Long id;

    /** 标签 */
    @ApiModelProperty(value = "标签名称")
    private String tag;
    
    /** 状态 */
    private TagStatus status;
    
    /** 创建时间 */
    private Date createTime;

    /** 更新时间 */
    private Date updateTime;
}
